#include"Common.h"
#pragma once

class ThreadCache
{
public:
	void* Allocate(size_t size);
	void Deallocate(void* ptr, size_t size);
	void* FetchNumFromCentralCache(size_t pos,size_t size);
private:
	FreeList _freelists[NFREELIST];
};
static _declspec(thread) ThreadCache* pTLSThreadCache = nullptr;